package com.apartment.sevice;

import com.apartment.data.entity.User;

import java.util.List;

/**
 * Author : xuzhiyong
 * Date : 2022/5/27 22:52
 */
public interface UserService {
    User userLogin(String username,String password);

    List<User> findAll();

    boolean addUser(User user);

    boolean deleteUserById(Integer id);

    boolean updateUser(User user);

    User findUserById(Integer id);

    User findUserByUsername(String username);

    User findByUsernameAndMail(String username, String mail);

    User findUserByMail(String mail);
}
